﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Resource_RG.aspx.cs" Inherits="Hisun.View.Resource.Resource_RG" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script language="javascript" for="document" event="onkeydown">

  if(event.keyCode==13 && event.srcElement.type!="button" && event.srcElement.type!="submit" && event.srcElement.type!="reset" && event.srcElement.type!="textarea" && event.srcElement.type!="")
{
      event.keyCode=9;
   }

    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class=" CommonPage_MainPanel">
        <div class="CommonPage_Banner">
            <div class="CommomPage_Title">
                人工费用</div>
        </div>
        <div class="CommonPage_Body">
            <table style="width: 100%;">
                <tr>
                    <td colspan="3">
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Label ID="Label2" runat="server" Text="名称筛选：" SkinID="Label"></asp:Label>
                        <asp:TextBox ID="TextBox_QueryString" runat="server" SkinID="TextBox"></asp:TextBox>
                        <asp:Button SkinID = "Button" ID="Button_Query" runat="server" OnClick="Button_Query_Click" Text="GO" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:GridView ID="GridView_RG" runat="server" SkinID="GridView" AutoGenerateColumns="False"
                            OnRowDataBound="GridView_RG_RowDataBound" ShowFooter="True">
                            <Columns>
                                <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" ReadOnly="True" SortExpression="作业中心ID" />
                                <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" ReadOnly="True" SortExpression="作业中心名称" />
                                <asp:TemplateField HeaderText="数量">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_Number" runat="server" Text='<%# string.Format("{0:N2}",Eval("数量")) %>'></asp:TextBox>
                                  <asp:RegularExpressionValidator ID="RegularExpressionValidator_2" runat="server" 
                                        ControlToValidate="TextBox_Number" ErrorMessage="*" 
                                        ValidationExpression="^(([1-9]+\d*)|([1-9]+\d*\.\d{1,2}))$" 
                                        ValidationGroup="group">*</asp:RegularExpressionValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="金额" SortExpression="金额">
                                    <EditItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("金额") %>'></asp:Label>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_Money" runat="server" Text='<%# string.Format("{0:N2}",Eval("金额")) %>'></asp:TextBox>
                                       <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="TextBox_Money" ErrorMessage="*" 
                                        ValidationExpression="^(([1-9]+\d*)|([1-9]+\d*\.\d{1,2}))$" 
                                        ValidationGroup="group">*</asp:RegularExpressionValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button  ID="Button1" runat="server" SkinID ="Button"  OnClick="Button1_Click" Text="保存" ValidationGroup="group" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
